ifneq ($(KERNELRELEASE),)
	obj-m := hello.o
else
	KERNELDIR :=/lib/modules/$(shell uname -r)/build
	PWD := $(shell pwd)
				 
default:
	$(MAKE) -C $(KERNELDIR) M=$(PWD) modules

clean:  
	rm -rf *.o *~ core .depend .*.cmd *.ko *.mod.c .tmp_versions modules.* Module.*
install:
	$(shell sudo insmod ./hello.ko)
endif
